Hello,
I have recently upgraded a site from Kentico 12 MVC to Kentico 13 MVC, I am seeing the following error in the event log. Apart from this one error in the event log, everything seems to function as expected.
Event ID:76766 Event type:Error Event time:11/29/2022 3:06:17 PM Source:TypeManager Event code:PREINIT IP address: Description:Message: The route template 'getavatar/{avatarguid:guid}/{filename}' is already registered. Parameter name: descriptor Exception type: System.ArgumentException Stack trace: at CMS.Base.Routing.HttpHandlerRouteTable.Register(RegisterHttpHandlerAttribute descriptor) at CMS.Core.TypeManager.PreInitializeTypes(Assembly assembly) Machine name:Development Event URL: URL referrer: User agent:
Is there a way we can resolve this issue? Thanks!
Hi Pradeep,
There was a similar question here, please check out if clearing CMS references in your MVC project would help you as well.
Thanks Dmitry
Removed the Xperience Library Nuget package and found there were a few manual CMS References from Lib, Cleared those out and it worked well.
Please, sign in to be able to submit a new answer.